﻿
CREATE FUNCTION dbo.fverTree_CheckBox
	(
	@Checked bit
	)
RETURNS varchar(4000)
AS
BEGIN
DECLARE @IsChecked sysname

IF @Checked = 1 SET @IsChecked = ' checked '
ELSE SET @IsChecked = ''

RETURN '<INPUT type="checkbox"'+@IsChecked+' onclick="event.cancelBubble=true;checkVerItem(this)">'
END

